<template>
  <div class="box">
    <div class="item_box">
      <div class="item_box_title">期刊封面</div>
      <img
        class="item_box_img"
        src="https://www.diantangkeji.com:8084/static/jiyin1727369077590.png"
        alt=""
      />
      <div class="item_box_content">
        <div class="item_box_pay">￥2000元起</div>
        <div class="item_box_time">完成时间：2-7个工作日</div>
        <div class="PlaceAnOrder" @click="showSaoMA1 = true">立即下单</div>
      </div>
      <div class="showERWEIMA" @click="showSaoMA1 = false" v-if="showSaoMA1">
        <img
          class="showERWEIMA_img"
          src="https://www.diantangkeji.com:8084/static/erweima1727514979679.png"
          alt=""
        />
      </div>
    </div>
    <div class="item_box">
      <div class="item_box_title">论文摘要图</div>
      <img
        class="item_box_img"
        src="https://www.diantangkeji.com:8084/static/xibao1727371311709.png"
        alt=""
      />
      <div class="item_box_content">
        <div class="item_box_pay">￥300元起</div>
        <div class="item_box_time">完成时间：3-5个工作日</div>
        <div class="PlaceAnOrder" @click="showSaoMA2 = true">立即下单</div>
      </div>
      <div class="showERWEIMA" @click="showSaoMA2 = false" v-if="showSaoMA2">
        <img
          class="showERWEIMA_img"
          src="https://www.diantangkeji.com:8084/static/erweima1727514979679.png"
          alt=""
        />
      </div>
    </div>
    <div class="item_box">
      <div class="item_box_title">论文插图</div>
      <img
        class="item_box_img"
        src="https://www.diantangkeji.com:8084/static/bingdu1727371342732.png"
        alt=""
      />
      <div class="item_box_content">
        <div class="item_box_pay">￥300元起</div>
        <div class="item_box_time">完成时间：3-5个工作日</div>
        <div class="PlaceAnOrder" @click="showSaoMA3 = true">立即下单</div>
      </div>
      <div class="showERWEIMA" @click="showSaoMA3 = false" v-if="showSaoMA3">
        <img
          class="showERWEIMA_img"
          src="https://www.diantangkeji.com:8084/static/erweima1727514979679.png"
          alt=""
        />
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "header",
  props: {
    url: {
      type: String,
      default: function () {
        return "";
      },
    },
  },
  data() {
    return {
      showSaoMA1: false,
      showSaoMA2: false,
      showSaoMA3: false,
    };
  },
  methods: {},
};
</script>

<style scoped>
.box {
  margin: 100px auto 0;
  width: 1302px;
  height: 780px;
  /* 其他样式设置，比如背景尺寸、重复等 */
  background-size: cover; /* 让背景图片覆盖整个元素 */
  background-position: center; /* 背景图片居中显示 */
  display: flex;
  justify-content: space-between;
}
.item_box {
  position: relative;
  width: 414px;
  height: 702px;
}
.item_box_title {
  font-family: "SourceHanSansSC, SourceHanSansSC";
  font-weight: 500;
  font-size: 32px;
  color: #1a1a1a;
  text-align: center;
  padding-bottom: 20px;
}
.item_box_img {
  width: 414px;
  height: 394px;
}
.item_box_content {
  height: 238px;
  padding: 0 7px 7px 7px;
  background: #f4f4f4;
}
.item_box_pay {
  padding-top: 24px;
  font-family: "SourceHanSansSC, SourceHanSansSC";
  font-weight: 500;
  font-size: 30px;
  color: #ff7700;
  display: flex;
  justify-content: center;
}
.item_box_time {
  font-family: "SourceHanSansSC, SourceHanSansSC";
  font-weight: 400;
  font-size: 24px;
  color: #000000;
  margin-top: 4px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
.PlaceAnOrder {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: #0365fe;
  font-family: "SourceHanSansSC, SourceHanSansSC";
  font-weight: 500;
  font-size: 30px;
  color: #ffffff;
}
.showERWEIMA {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}
.showERWEIMA_img {
  width: 216px;
  height: 216px;
  position: absolute;
  z-index: 999;
}
</style>
